package com.moogene.saad.gameplay.hero;

import android.graphics.Bitmap;
import android.graphics.BitmapFactory;

import com.moogene.android.InfoMediator;
import com.moogene.android.R;
import com.moogene.saad.gameplay.attacter.AttAction;
import com.moogene.saad.gameplay.attacter.Attacker;

public class Hero extends Attacker {
	private static Hero sHero;
	private Bitmap photo;

	private Hero(AttAction action, Bitmap photo, int speed, int hp) {
		super(action, speed, hp);
		this.setPhoto(photo);
	}

	private static Hero load() {
		Hero hero = null;
		String actionName = "actEnemy1";
		AttAction action = AttAction.load(actionName);
		int speed = 5;
		int hp = 100;
		Bitmap photo = InfoMediator.getBitmap(R.drawable.hero_photo);
		hero = new Hero(action, photo, speed, hp);
		return hero;
	}
	
	public static Hero getInstance(){
		if(sHero == null){
			sHero = load();
		}
		return sHero;
	}

	public Bitmap getPhoto() {
		return photo;
	}

	public void setPhoto(Bitmap photo) {
		this.photo = photo;
	}

}
